//
//  UIImageView+SDWebImage.swift
//  czbkiosweibo5
//
//  Created by zhangping on 15/10/17.
//  Copyright © 2015年 zhangping. All rights reserved.
//

import UIKit

// MARK: - 隔离SDWebImage
extension UIImageView {
    
    /**
    设置图片url
    - parameter url: 图片的url
    */
    func cz_setImageWithURL(url: NSURL!) {
        sd_setImageWithURL(url)
    }
    
    /**
    设置图片url,带占位图片
    - parameter url:         要加载图片的url
    - parameter placeholder: 占位图片
    */
    func cz_setImageWithURL(url: NSURL!, placeholderImage placeholder: UIImage!) {
        sd_setImageWithURL(url, placeholderImage: placeholder)
    }
}
